POV-Ray : Newsgroups : povray.general : Patch idea : Re: Patch idea Server Time
4 Aug 2024 00:24:26 EDT (-0400)
  Re: Patch idea  
From: Warp
Date: 26 Aug 2003 07:19:11
Message: <3f4b422f@news.povray.org>
"Micheal \(Mike\) Williams" <mic### [at] quixnetnet> wrote:
> I have been toying with an idea. All objects in real life have a thickness
> to them. The metal of a car is thick enough that we can see it rounded at
> the edges. The idea is to treat triangles as though they have a thickness.

  Why? What would be the advantage of this?

> The ray is incremented at a constant value. The triangle strike
> point might just lay between he ray steps.

  No, in raytracing rays are not incremented by steps (that would be
awfully slow anyways).
  The intersection of a ray with a surface is calculated mathematically.
For example, when you want to get the intersection of a ray and a sphere
you take the function of a line representing the ray and the function
of the spherical surface, make them equal and solve where they get the
same value. See http://povray.org/documentation/view/116/ for an
example implementation of this.

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.